package com.diamond.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Supplier entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "supplier", catalog = "diamond")
public class Supplier implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7401965117761715731L;
	private Long supplierId;
	private String supplierName;
	private String loginUsername;
	private String loginPassword;
	private String supplierLink;

	// Constructors

	/** default constructor */
	public Supplier() {
	}

	/** full constructor */
	public Supplier(String supplierName, String loginUsername,
			String loginPassword, String supplierLink) {
		this.supplierName = supplierName;
		this.loginUsername = loginUsername;
		this.loginPassword = loginPassword;
		this.supplierLink = supplierLink;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "supplier_id", unique = true, nullable = false)
	public Long getSupplierId() {
		return this.supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	@Column(name = "supplier_name", length = 500)
	public String getSupplierName() {
		return this.supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	@Column(name = "login_username", length = 500)
	public String getLoginUsername() {
		return this.loginUsername;
	}

	public void setLoginUsername(String loginUsername) {
		this.loginUsername = loginUsername;
	}

	@Column(name = "login_password", length = 500)
	public String getLoginPassword() {
		return this.loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	@Column(name = "supplier_link", length = 500)
	public String getSupplierLink() {
		return this.supplierLink;
	}

	public void setSupplierLink(String supplierLink) {
		this.supplierLink = supplierLink;
	}

}